import Vue from 'vue'
import App from './App'
import router from './router'
import {RadonInstall} from 'radon-ui'
import 'radon-ui/dist/radon-ui.css'
import iView from 'iview'
import 'iview/dist/styles/iview.css'
import MintUi from 'mint-ui'
import 'mint-ui/lib/style.css'
import {formatDate} from './comment/time'
import {handleNumber} from './comment/number'

Vue.use(MintUi)

Vue.use(iView)
Vue.use(RadonInstall)
Vue.config.productionTip = false
// 时间戳转换
Vue.filter('dateFmt', (time) => {
  var date = new Date(time)
  return formatDate(date, 'yyyy-MM-dd')
})
Vue.filter('changeNum', (num) => {
  return handleNumber(num)
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})
